package com.megic.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author Gene
 * @Date 2020/8/8 21:34
 * @Version 1.0
 */
@FeignClient("products")
public interface ProductClient {

    @RequestMapping("/product/findall")
    Map<String,Object> findall(@RequestParam("productId") String id);
}
